<?php

class m130825_211806_alter_table_pages extends CDbMigration
{
	public function safeUp()
	{
		$connection=Yii::app()->db;
		$sql="ALTER TABLE `pages` CHANGE COLUMN `name` `name` VARCHAR(250) NOT NULL  , CHANGE COLUMN `text` `text` TEXT NULL  ;";
		$command=$connection->createCommand($sql);
		$command->execute();
	}

	public function safeDown()
	{
		return TRUE;
	}
}